package com.chen.util;

import com.chen.model.entity.system.SysUser;

/**
 * @author cgj
 * @date 2/10/25 8:42 AM
 */
public class AuthContextUtil {
         private static  final   ThreadLocal<SysUser> threadLocal = new ThreadLocal<SysUser>();
         public static  void set(SysUser sysUser){
             threadLocal.set(sysUser);
         }
         public static  SysUser get(){
            return threadLocal.get();
         }
         public static void remove(){
             threadLocal.remove();
         }

}
